package IoTest;

import java.util.*;

public class test1 {

    public static void main(String[] args) {
        String str = "[12,3,4,5]";
        List<String> list = Arrays.asList(str.split(","));
        int[] a= new int[list.size()];
        int i=0;
        for (String num:list) {
            int n = Integer.parseInt(num);
            a[i++]=n;
        }
        Deque<Integer> list1=new LinkedList<>();
        list1.add(null);
        System.out.println(list);
        Map<Integer,Integer> map = new HashMap<>();
        map.put(1,2);
        map.put(2,3);
        PriorityQueue<Map.Entry<Integer,Integer>> qp = new PriorityQueue<>(((o1, o2) -> o1.getValue()-o2.getValue()));

    }
}
